package com.iwy.hadoop.hdfs;

import org.apache.hadoop.fs.permission.FsPermission;

import java.util.List;

/**
 * @Author weibi
 * @Date 2021/1/20 16:08
 * @Description //TODO
 */
public class FileInfo {

    // 文件名称
    private String fileName;

    // 文件权限
    private FsPermission permission;

    // 文件长度
    private long len;

    // 块信息
    private List<BlockInfo> blocks;


    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }


    public long getLen() {
        return len;
    }

    public void setLen(long len) {
        this.len = len;
    }

    public List<BlockInfo> getBlocks() {
        return blocks;
    }

    public void setBlocks(List<BlockInfo> blocks) {
        this.blocks = blocks;
    }

    public FsPermission getPermission() {
        return permission;
    }

    public void setPermission(FsPermission permission) {
        this.permission = permission;
    }

    @Override
    public String toString() {
        return "FileInfo{" +
                "fileName='" + fileName + '\'' +
                ", permission=" + permission +
                ", len=" + len +
                ", blocks=" + blocks +
                '}';
    }
}
